#ifndef GLF_H_INCLUDED
#define GLF_H_INCLUDED
//define GLF platform

#if defined( WIN32 )
#	define GLF_PLATFORM_WIN32
#	define _CRT_SECURE_NO_WARNINGS	//This must be defined here since gl3.h depends on libc
#else
#	define GLF_PLATFORM_LINUX
#endif

#include <gl3.h>	//wglext.h depends on this

#if defined( GLF_PLATFORM_WIN32 )
#	include <wglext.h>
#	define _USE_MATH_DEFINES
#	include <math.h>
#elif defined( GL_PLATFORM_LINUX )
#else
#	error platform not supported
#endif

#ifdef _DEBUG
#define GLF_TRACE( format, ... ) glfTrace( format, __VA_ARGS__ )	
#else
#define GLF_TRACE( format, ... )
#endif

#ifdef __cplusplus
extern "C" {
#endif

void glfTrace( const char *format, ... );

#ifdef __cplusplus
}
#endif

#endif
